package my.design.interpreter;

import java.util.HashMap;

/**
 * @author zp
 * @version 1.0
 * @description: 乘法解析器
 * @date 2022/10/28 18:48
 */
public class MultExpression extends SymbolExpression {
    public MultExpression(Expression left, Expression right) {
        super(left, right);
    }

    @Override
    public Double interpreter(HashMap<String, Double> var) {
        return super.left.interpreter(var) * super.right.interpreter(var);
    }
}
